package com.winhxd.b2c.customer.dao;


import com.winhxd.b2c.common.domain.customer.condition.DistributorChannelCondition;
import com.winhxd.b2c.common.domain.customer.condition.DistributorChannelTypeCondition;
import com.winhxd.b2c.common.domain.customer.model.CustomerChannel;
import com.winhxd.b2c.common.domain.customer.vo.CustomerDistributorChannelTypeVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CustomerChannelMapper {
    int deleteByPrimaryKey(Long id);

    int insert(CustomerChannel record);

    int insertSelective(CustomerChannel record);

    CustomerChannel selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(CustomerChannel record);

    int updateByPrimaryKey(CustomerChannel record);

    List<CustomerDistributorChannelTypeVO> findCustomerDistribtorChannelTypeList(DistributorChannelTypeCondition condition);

    List<CustomerDistributorChannelTypeVO> findDistributerChannelTypeList(DistributorChannelTypeCondition condition);

    Integer countDistriButorChannelByCondition(DistributorChannelCondition channelCondition);
}